package org.quarenden.demo.controller;

import org.quarenden.demo.feign.MicroService1FeignClient;
import org.quarenden.demo.pojo.MicroService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MicroService1Controller {
    @Autowired
    private MicroService1FeignClient microService1FeignClient;

    @GetMapping("/ms1/{id}")
    public MicroService getMicroService(@PathVariable String id){
        return microService1FeignClient.getMicroService(id);
    }
}
